package com.ruoyi.system.pool;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @description: 属性配置
 * @author: stone
 * @date: Created by 2022/4/16 17:43
 * @version: 1.0.0
 * @pakeage: com.ruoyi.system.pool
 */
@ConfigurationProperties(prefix = "ssh.config")
@Data
public class SshPoolProperties {
    //连接超时时间
    private int connectionTimeOut = 60 * 60 * 12;

    /**
     * 最大空闲
     */
    private int maxIdle = 6;
    /**
     * 最大总数
     */
    private int maxTotal = 4;
    /**
     * 最小空闲
     */
    private int minIdle = 1;
    /**
     * 初始化
     */
    private int initialSize = 1;
    /**
     * Key最大空闲
     */
    private int maxIdleKey = 6;
    /**
     * Key最大总数
     */
    private int maxTotalKey = 4;
    /**
     * Key最小空闲
     */
    private int minIdleKey = 1;
    /**
     * Key初始化
     */
    private int initialSizeKey = 1;


}
